package com.pactera.asmp.server.pojo;

import java.io.Serializable;
import java.util.Map;

public class SocketMessage implements Serializable {

    private String from;
    private String to;
    private String displayId;
    private String type;  // txt,img ,json,timeout
    private byte[] data;
    private Map<String,Object> params;

    public SocketMessage(){

    }
    public SocketMessage(String from, String type, byte[] data,Map<String,Object> params){
        this.from = from;
        this.data = data;
        this.type = type;
        this.params = params;
    }
    public SocketMessage(String from,String to, String type, byte[] data,Map<String,Object> params){
        this.from = from;
        this.to = to;
        this.data = data;
        this.type = type;
        this.params = params;
    }

    public SocketMessage(String from,String to, String displayId, String type, byte[] data,Map<String,Object> params){
        this.from = from;
        this.to = to;
        this.displayId = displayId;
        this.data = data;
        this.type = type;
        this.params = params;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getDisplayId() {
        return displayId;
    }

    public void setDisplayId(String displayId) {
        this.displayId = displayId;
    }

}
